package api

import (
	"github.com/gin-gonic/gin"
	"watermelon/client/api/handler"
	"watermelon/pkg"
)

func LoadRouter(r *gin.Engine) {
	r.POST("/send/sms", handler.SendSms)
	r.POST("/user/login", handler.UserLogin)
	r.POST("/api/v1/wx", handler.WxLogin)
	r.Use(pkg.JWTAuth("2211a"))
	r.POST("/user/item", handler.UserItem)
	r.POST("/user/car", handler.UserCar)
	r.POST("/forget/password", handler.ForgetPassword)
}
